package com.yy.feign;

import com.yy.domain.Prod;
import com.yy.feign.sentinel.StoreProdFeignSentinel;
import com.yy.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "product-service" ,fallback = StoreProdFeignSentinel.class)
public interface StoreProdFeign {
    @GetMapping("prod/prod/getProdById")
    public Result<Prod> getProdById(@RequestParam(value = "prodId") Long prodId);
}
